from common import log_set,send_mail
import pytest
if __name__ == '__main__':
    log_set()
    pytest.main(['./','-s','--html=bg.html'])#报告格式
    send_mail(['bg.html','log.txt'])#发送日志和报告